﻿using System.Data.Common;
using System.Data.SqlClient;
using DapperLambdaSQL.Model;

namespace DapperLambdaSQL.Factory.Impl
{
    public class SqlServerConnectionFactory : IDbConnectionFactory
    {
        public SQLOptions SQLOptions { get; set; }

        public DbConnection CreateConnection()
        {
            return new SqlConnection(SQLOptions.DbConnectionString);
        }
    }
}